#!/usr/bin/python3.8
# -*- coding: utf-8 -*-
# @Time    : 2021/3/13 10:05 下午
# @Author  : zhaohexin
# @Email   : 1483643520@xxx.com
# @File    : Exception.py
# @Software: PyCharm
# @FileDescription： 自定义异常抛出

import datetime


class NormalException(Exception):
    def __init__(self, status: int, message: str):
        self.message = message
        self.status = status
        self.timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
